﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports System.Windows
Imports System.IO
Imports System.Windows.Markup
Imports System.Windows.Media
Imports System.Windows.Controls
Imports System.Globalization

Public Class WindowMaximizeButton
    Inherits WindowButton

    Public Sub New()

        'open resource where in XAML are defined icons and colors
        'Dim resourceStream As Stream = Application.GetResourceStream(New Uri("pack://application:,,,/PT_CustomWindow;component/ButtonIcons.xaml")).Stream
        'Dim resourceDictionary As ResourceDictionary = CType(XamlReader.Load(resourceStream), ResourceDictionary)

        Me.Content = Me.Resources("WindowButtonMaximizeIcon")
        Me.ContentDisabled = Me.Resources("WindowButtonMaximizeIconDisabled")

    End Sub
End Class
